package org.zjt.java.demo.vo;

import com.alibaba.fastjson.JSONObject;
import org.springframework.http.HttpStatus;

import java.io.Serializable;

public class RestResultMsg<T> implements Serializable {

    private Integer httpStatus;

    private T t;

    private boolean success;

    public Integer getHttpStatus() {
        return httpStatus;
    }

    public void setHttpStatus(HttpStatus httpStatus) {
        this.httpStatus = httpStatus.value();
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public RestResultMsg() {
    }

    public RestResultMsg(HttpStatus httpStatus, T t, boolean success) {
        this.httpStatus = httpStatus.value();
        this.t = t;
        this.success = success;
    }


}
